<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面布局2（Flex）</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-size: 14px;
        }

        #container {
            margin: 0 auto;
            width: 1000px;
            height: 500px;
            display: flex;
        }

        #aside{
            flex: 3;
            background-color:bisque;
        }
        #content{
            flex: 7;
            margin-left: 5px;
            background-color:aquamarine;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="aside"></div>
        <div id="content"></div>
    </div>
</body>
</html>